home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / lightwave / lwmlist / 94.lightwave-10 / 000107_owner-lightwave-l _Sun Oct 9 00:24:13 1994.msg < prev    next >
Internet Message Format  |  1994-11-05  |  3KB

  1. Return-Path: <owner-lightwave-l>
  2. Received: by mail.netcom.com (8.6.9/Netcom)
  3.     id WAA10738; Sat, 8 Oct 1994 22:18:02 -0700
  4. Received: from gaspra.pd.com by mail.netcom.com (8.6.9/Netcom)
  5.     id WAA10728; Sat, 8 Oct 1994 22:17:57 -0700
  6. Received: by gaspra.pd.com (4.1/1.37)
  7.     id AA04092; Sat, 8 Oct 94 22:18:26 MST
  8. Date: Sat, 8 Oct 1994 22:18:24 -0700 (MST)
  9. From: Ernie Wright <ernie@gaspra.pd.com>
  10. Subject: Motion Macro
  11. To: lightwave-l@netcom.com
  12. Message-Id: <Pine.3.89.9410082240.A4068-0100000@gaspra.pd.com>
  13. Mime-Version: 1.0
  14. Content-Type: TEXT/PLAIN; charset=US-ASCII
  15. Sender: owner-lightwave-l@netcom.com
  16. Precedence: bulk
  17. Reply-To: lightwave-l@netcom.com
  18.  
  19. Sergio Rosas (ser2511@tamsun.tamu.edu) described a program that would
  20. read several scene files, concatenate them in a user-defined sequence,
  21. and write a new master scene.  The idea is that the input scenes would
  22. be temporal modules A, B, C, the sequence might be AAABAABC, and the
  23. output would be a single scene file that strung all of this together.
  24.  
  25. There are several easier ways to do this:
  26.  
  27. 1. Write an ARexx script that loads and renders the scenes in the
  28.    proper sequence.  This script doesn't have to be much longer than
  29.    one line per scene instance.
  30.  
  31. 2. Assemble the master scene by hand in a text editor.  If you know
  32.    the scene file format well enough to read and write scenes from
  33.    within a program, you can do it by hand, and if you're not going
  34.    to be doing this very often, it's not worth the trouble to write
  35.    a program to do it.
  36.  
  37. 3. Render the basic scenes and assemble the sequence on tape.  If you
  38.    can find a way to do this, it'll be a whole lot faster.
  39.  
  40. Sergio, if you insist on writing this program, think about how you
  41. would perform its functions by hand:  Load scene A, save as S1, Shift
  42. All Keys by 30, save as S2, load B, Shift All Keys by 60, save as S3,
  43. and so on.  Load S1 and S2 into a text editor, cut the key frame info
  44. for object 1 from S2, paste this after the key frame info for object
  45. 1 in S1, and repeat this for each scene and each object (including
  46. lights and the camera).  If anything is enveloped, the envelopes have
  47. to be cut together too.  Update the key frame count for each object
  48. and save S1 as the master.  This is basically what your program must
  49. do.
  50.  
  51. Since you're new to it, you might want to consider learning ARexx by
  52. tackling smaller projects first (e.g., item 1 above).  As for the
  53. scene file format, it's mostly just a list of settings of the form
  54.  
  55.    Parameter1 Value1
  56.    Parameter2 Value2
  57.  
  58. The important exceptions are the embedded motion files and envelopes.
  59. Each motion key contains values for x, y, z, heading, pitch, bank,
  60. x-scale, y-scale and z-scale in the first line, followed by keyframe
  61. number, knot type, tension, continuity and bias in the second line.
  62. Envelopes are similar, but the number of values in the first line
  63. (often 1) and their meaning depends on what the envelope is for.
  64.  
  65. The details and variations that I've left out of this description are
  66. easiest to learn by studying scene files.
  67.  
  68. - Ernie